﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="rss.aspx.vb" Inherits="Prototype.rss" %>

<%@ OutputCache Duration="300" VaryByParam="none" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server"><title>Using XmlDataSource</title>
</head>
<body>
     <form id="form1" runat="server">
     <div>
          <asp:DataList ID="ArtistList" runat="server"
                 DataSourceID="ArtistData" CellPadding="4" ForeColor="#333333">
                 <AlternatingItemStyle BackColor="White" />
                 <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                 <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                 <ItemStyle BackColor="#FFFBD6" ForeColor="#333333" />
                 <ItemTemplate>
    
                  <p>
                  <b>
                  <%# XPath("@name")%>
                  </b> <br />
              <i>  <% XPath("artistlist/artist/surname")%></i>
        
              </p>
              </ItemTemplate>
                 <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
           </asp:DataList>
    <asp:XmlDataSource ID="ArtistData" runat="server" DataFile="~/Artists.xml" XPath="artistlist/artist" />

</div>
</form>


</body>
</html>

